SETLOCAL ENABLEDELAYEDEXPANSION
set START_DIR=%~d0%~p0%~nx0
set START_DIR=!START_DIR:%~0=!
echo %START_DIR%

cd "%~d0%~p0"

astyle --indent=tab=4 --style=break --indent-classes --indent-switches --indent-preproc-define --indent-namespaces --break-closing-brackets --pad-oper --pad-header --unpad-paren --convert-tabs --add-brackets --delete-empty-lines --keep-one-line-blocks --keep-one-line-statements --align-pointer=name --align-reference=name --max-instatement-indent=79 --suffix=none --recursive ..\BK\*.cpp ..\BK\*.h ..\BKDE\*.cpp ..\BKDE\*.h ..\HDDImgMaker\*.cpp ..\HDDImgMaker\*.h

cd %START_DIR%